<template>
  <div>
    <h1>三方登录</h1>
    <van-button @click="dd">钉钉登录</van-button>
  </div>

</template>

<script>
export default {
  name: "s_login",
  data() {
    return {
      token:'qwertyuiop',
      uid:1234,
    }
  },
  methods:{
    dd(){
      this.$axios.post('users/sfM',{'uid':this.uid,'token':this.token}).then(res=>{
        if(res.data.type==1){
          alert('ok')
          this.$router.push('/aaa')
        }else {
          window.location.href = res.data.url
        }
      })
    },
  }
}
</script>

<style scoped>

</style>
